const dpServiceProviderMode = (request) => {
	return {
    // 查询服务商下绑定的服务组织(机构、设施、运营单位)
		view_getBindOrganization(query = {}) {
			return request('/bussiness/dpServiceProvider/getBindOrganization', {
				method: 'post',
				data: query,
			})
		},
		view_dpServiceProvider_page(query = {}) {
			return request('/bussiness/dpServiceProvider/page', {
				method: 'post',
				data: query,
			})
		},
		view_dpServiceProvider_add(query = {}) {
			return request('/bussiness/dpServiceProvider/add', {
				method: 'post',
				data: query,
			})
		},
		view_dpServiceProvider_del(query = {}) {
			return request('/bussiness/dpServiceProvider/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 导入
		view_dpServiceProvider_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpServiceProvider/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpServiceProvider_downloadTemplate(query = {}) {
			return request('/bussiness/dpServiceProvider/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		view_dpServiceProvider_edit(query = {}) {
			return request('/bussiness/dpServiceProvider/edit', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		view_dpServiceProvider_export(query = {}) {
			return request('/bussiness/dpServiceProvider/export', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 采集
		view_dpServiceProvider_gather(query = {}) {
			return request('/bussiness/dpServiceProvider/gather', {
				method: 'post',
				data: query,
			})
		},
		// 详情
		view_dpServiceProvider_view(id) {
			return request(`/bussiness/dpServiceProvider/${id}`, {
				method: 'get',
			})
		},
		// 绑定养老机构
		view_dpServiceProvider_bind_org(query = {}) {
			return request(`/bussiness/dpServiceProvider/bind`, {
				method: 'post',
				data: query,
			})
		},
		// 全字段查询
		view_dpServiceProvider_search(query = {}) {
			return request(`/bussiness/dpServiceProvider/search`, {
				method: 'post',
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...dpServiceProviderMode(request),
})
